<?php

namespace app\common\model;

use app\common\model\TimeModel;

class Shop extends TimeModel
{

    protected $name = "shop";

    protected $deleteTime = "delete_time";
    protected $defaultSoftDelete = 0;

    public function banner()
    {
        return $this->hasMany(ShopBanner::class, 'shop_id', 'id');
    }

    public function district()
    {
        return $this->belongsTo(BusinessDistrict::class, 'district_id', 'id');
    }

}